﻿using CPPEI.Coolzon.UI;
using CPPEI.Coolzon.UI.Views;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.Coolzon.Designer.UI
{
    public class UIContext
    {
        private static UIContext s_current = null;

        public static UIContext Current
        {
            get
            {
                if (s_current == null)
                {
                    s_current = new UIContext();
                }

                return s_current;
            }
        }

        public View RenderView { get; set; }

        /// <summary>
        /// 当前操作的方案信息
        /// </summary>
        public Coolzon.Metadata.Solution CurrentSolution { get; set; }
    }
}
